package com.qf.first.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

@Data
@ApiModel("订单实体类")
public class Order {
    @ApiModelProperty("订单号")
    private Long orderId;
    @ApiModelProperty("用户id")
    private Long userId;
    @ApiModelProperty("商户id")
    private Long shopId;
    @ApiModelProperty("餐品id")
    private Long foodId;
    @ApiModelProperty("餐品数量")
    private int orderNum;
    @ApiModelProperty("餐品总价")
    private double orderAllPrice;
    @ApiModelProperty("订单创建时间")
    private Timestamp orderCreatTime;
    @ApiModelProperty("订单状态id")
    private int stateId;
    @ApiModelProperty("伪删除")
    private int is_delete;

    public Order() {
    }

    public Order(Long orderId, Long userId, Long shopId, Long foodId, int orderNum, double orderAllPrice, Timestamp orderCreatTime, int stateId, int is_delete) {
        this.orderId = orderId;
        this.userId = userId;
        this.shopId = shopId;
        this.foodId = foodId;
        this.orderNum = orderNum;
        this.orderAllPrice = orderAllPrice;
        this.orderCreatTime = orderCreatTime;
        this.stateId = stateId;
        this.is_delete = is_delete;
    }
}
